import 'package:share_fit/app/controllers/device/alarm/alarm_item.dart';

class AlarmState {
  bool isLoading = true;
  var itemDatas = <AlarmItem>[];
  List<int> cycleList = [];
  int cycleListInt = 0;
  int cycleListIntIOS = 0;
  DateTime selectTime = DateTime.now();

  int WeekCycleSUNDAY = 0x01; //周日Sunday
  int WeekCycleMONDAY =0x02; //周一Monday
  int WeekCycleTUESDAY = 0x04; //周二Tuesday
  int WeekCycleWEDNESDAY = 0x08; //周三Wednesday
  int WeekCycleTHURSDAY =0x10; //周四Thursday
  int WeekCycleFRIDAY = 0x20; //周五Friday
  int WeekCycleSATURDAY = 0x40; //周六Saturday
  int WeekCycleEVERYDAY = 0x7F; //每天Everyday
  int WeekCycleWORKDAY =0x3E; //工作日Workday
  int WeekCycleONCE = 0;//单次Once

  int WeekCycleSUNDAYIOS = 64; //周日Sunday
  int WeekCycleMONDAYIOS =1; //周一Monday
  int WeekCycleTUESDAYIOS = 2; //周二Tuesday
  int WeekCycleWEDNESDAYIOS = 4; //周三Wednesday
  int WeekCycleTHURSDAYIOS =8; //周四Thursday
  int WeekCycleFRIDAYIOS = 16; //周五Friday
  int WeekCycleSATURDAYIOS = 32; //周六Saturday
  int WeekCycleEVERYDAYIOS = 127; //每天Everyday
  int WeekCycleWORKDAYIOS =31; //工作日Workday

  bool alarmAddLater = false;
  String alarmRepeat = '';
  String alarmVibrate = '';
  String alarmLabel = '';

  bool alarmRepeat1 = false;
  bool alarmRepeat2 = false;
  bool alarmRepeat3 = false;
  bool alarmRepeat4 = false;
  bool alarmRepeat5 = false;
  bool alarmRepeat6 = false;
  bool alarmRepeat7 = false;

  static const String alarmRepeatId = 'alarmRepeatId';
  static const String alarmVibrateId = 'alarmVibrateId';
  static const String alarmLabelId = 'alarmLabelId';

  static const String alarmRepeat1Id = 'alarmRepeat1Id';
  static const String alarmRepeat2Id = 'alarmRepeat2Id';
  static const String alarmRepeat3Id = 'alarmRepeat3Id';
  static const String alarmRepeat4Id = 'alarmRepeat4Id';
  static const String alarmRepeat5Id = 'alarmRepeat5Id';
  static const String alarmRepeat6Id = 'alarmRepeat6Id';
  static const String alarmRepeat7Id = 'alarmRepeat7Id';

  List<String> alarm_vibrate_select = [
    '5', '10', '15', '20','25', '30'
  ];

  var is24HourFormat = false;

  AlarmState() {
    ///Initialize variables
  }
}
